<template>
	<view>
		<view class="content">
			<view class="list">
				<view class="row">
					<view class="title">头像</view>
					<view class="right"><view class="tis">
					<image :src="vaebianl"  @click="sdnplus"></image>
					</view><view class="iconfont icon-icon"></view></view>
				</view>
				<view class="row">
					<view class="title">昵称</view>
					<view class="right" @click="tisdahg()">
						<view class="tis">{{cenTent.name}}</view>
						<view class="iconfont icon-icon"></view>
					</view>
				</view>
				<view class="row" @click="rowgxqm()">
					<view class="title">个性签名</view>
					<view class="right"><view class="tis">{{cenTent.autograph}}</view><view class="iconfont icon-icon"></view></view>
				</view>
				<view class="row" @click="modifmy">
					<view class="title">修改密码</view>
					<view class="right"><view class="tis"></view><view class="iconfont icon-icon"></view></view>
				</view>
			</view>
			<view class="list">
				<view class="row">
					<view class="title">通知提醒</view>
					<view class="right"><view class="tis"></view><view class="iconfont icon-icon"></view></view>
				</view>
				<view class="row">
					<view class="title">支付设置</view>
					<view class="right"><view class="tis"></view><view class="iconfont icon-icon"></view></view>
				</view>
				<view class="row">
					<view class="title">通用</view>
					<view class="right"><view class="tis"></view><view class="iconfont icon-icon"></view></view>
				</view>
			</view>
			<view class="list">
				<view class="row">
					<view class="title">版本升级</view>
					<view class="right"><view class="tis">{{cenTent.Edition}}</view><view class="iconfont icon-icon"></view></view>
				</view>
				<!-- <view class="row">
					<view class="title">清除缓存</view>
					<view class="right"><view class="tis"></view><view class="iconfont icon-icon"></view></view>
				</view>
				<view class="row">
					<view class="title">问题反馈</view>
					<view class="right"><view class="tis"></view><view class="iconfont icon-icon"></view></view>
				</view> -->
				<view class="row">
					<view class="title">关于海峡阳光</view>
					<view class="right"><view class="tis"></view><view class="iconfont icon-icon"></view></view>
				</view>
			</view>
			<view class="SignOut" @click="sign">
				退出账户
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				vaebianl:null,
				cenTent:{
					name:'小李哥',
					autograph:'这人太懒了，什么都不写',
					Edition:'v1.0.0'
				}
			};
		},
		methods: {
			showType(tbIndex){
				this.tabbarIndex = tbIndex;
				this.list = this.orderList[tbIndex];
			},
			tisdahg(){
				uni.navigateTo({
					url:'modifyname'
				})
			},
			sign(){
				uni.navigateTo({
					url:'../login/login'
				})
			},
			rowgxqm(){
				uni.navigateTo({
					url:'autograph'
				})
			},
			modifmy:function(){
				uni.navigateTo({
					url:'modify'
				})
			},
			sdnplus:function(){
				uni.chooseImage({
					count: 1, //默认9
					sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图，默认二者都有
					sourceType: [''], //从相册选择
					success: (res)=>{
						console.log(JSON.stringify(res.tempFilePaths));
						this.vaebianl = res.tempFilePaths[0]
					}
				});
			}
		}
	}
</script>

<style lang="scss">
@import "../../../common/iconfont.css";
@font-face {
	   font-family: 'iconfont';
		src: url('~@/static/iconfont.ttf');
}
page{
	background-color: #f3f3f3;	
}

.icon {
	font-size: 30upx;

}
.SignOut{
	width: 94%;
	padding: 15upx 0;
	text-align: center;
	background: #13b1eb;
	color: #fff;
	border-radius: 10upx;
	font-size: 36upx;
	margin: 0 auto;
	margin-top: 26upx;
}
.content{
	padding-bottom: 20upx;
	.list{
		width: 96%;
		padding-left: 4%;
		background-color: #fff;
		margin-bottom: 20upx;
		.row{
			widows: 100%;
			min-height: 90upx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			border-bottom: solid 1upx #eee;
			&:last-child{
				border-bottom: none;
			}
			.title{
				font-size: 32upx;
				color: #333;
			}
			.right{
				display: flex;
				align-items: center;
				color: #999;
				.tis{
					font-size: 26upx;
					margin-right: 5upx;
					max-height: 120upx;
					image{
						width: 100upx;
						height: 100upx;
						border-radius: 100%;
						margin: 10upx 0;
					}
				}
				.icon{
					width: 40upx;
					color: #cecece;
				}
			}
			
		}
	}
}
.content .list .row .right{
	margin-right: 14upx
} 

</style>
